﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Hui 2.x</title>
    <meta charset="utf-8" />
    <meta name="author" content="百签软件（中山）有限公司，百小僧" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1,minimum-scale=1,user-scalable=no" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link type="text/css" href="../../css/hui.css" rel="stylesheet" />
    <style type="text/css"></style>
</head>
<body>
    <script type="text/javascript" src="../../script/hui.js"></script>
    <script type="text/javascript">
        hui.ready(function () {
            var framName = "index_body";
            hui.openContentFrame(framName, framName + '.html', [["#header"]], {});
            // 解决openWin切换性能问题，完美原生体验
            hui.optimizeLocation(framName);

            hui.keyback(function () {
                hui.execScript(function () {
                    var leftVal = parseFloat(hui.getCss(hui.single(".slidebar"), "left").replace("px"));
                    if (leftVal == 0) {
                        hui.single(".slidebar").style.cssText = "left: -33.33333333333333%;";
                        hui.single(".hui-main").style.cssText = "-webkit-transform:translateX(0);";
                    }
                    else {
                        hui.closeWin();
                    }
                }, "index_body");
            });
        });
    </script>
</body>
</html>
